@(eventForm: Form[Event], msg: String)
@helper.form(action = routes.Events.addEvent) {
    <input name="id" type="hidden" value="@eventForm("id").value" />
    @helper.inputText(eventForm("name"))
    @helper.textarea(eventForm("description"))
    @helper.inputText(eventForm("phone"))
    @helper.inputDate(eventForm("startDate"), '_label -> "Start date")
    @helper.inputDate(eventForm("endDate"), '_label -> "End date")
    
    <button id="submit-event" class="btn btn-primary">@if(eventForm("id").value == null || eventForm("id").value.isEmpty){Create}else{Edit}</button>
    @if(!msg.isEmpty()){
        @Html(msg)
    }
}
